package design._03_prototype.deep2;

import java.io.Serializable;

//附件类  因为要实现deep拷贝
public class Attachment implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String name; //附件名
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return this.name;
	}
	public void download() {
		System.out.println("下载附件，文件名为" + name);
	}
}
